package com.siyu.fegin;

import com.siyu.model.Student;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@Component
@FeignClient(name="student")
public interface StudentInter {
    @GetMapping("student/list")
    List<Student> getStudent();
}
